package com.eascs.admin.o2o.internal.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eascs.admin.common.service.BaseSevice;
import com.eascs.admin.o2o.internal.dao.PubDditemDao;
import com.eascs.admin.o2o.internal.entity.PubDditem;


@Service
public class PubDditemService extends BaseSevice {
	@Autowired
	private PubDditemDao pubDditemDao;
	/**
	 * 根据dd_no和item_code查询出 字典实体
	 * @param dd_code
	 * @param code
	 * @return
	 */
	public PubDditem queryPubDditem(String dd_code,String code){
		return pubDditemDao.queryPubDditem(dd_code.trim(),code.trim());
	}
	/**
	 * 根据dd_no和item_code查询出 字典实体
	 * @param dd_code
	 * @param code
	 * @return
	 */
	public PubDditem queryPubDditemO2o(String dd_code,String code){
		return pubDditemDao.queryPubDditemO2o(dd_code.trim(), code.trim());
	}
	
	/**
	 * 根据dd_no和item_code查询出表 pub_dditem_crm字典实体
	 * @param dd_code
	 * @param code
	 * @return
	 */
	public PubDditem queryPubDditemCRM(String dd_code,String code){
		return pubDditemDao.queryPubDditemCRM(dd_code.trim(), code.trim());
	}

}